DeriveGamemode( "base" )
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( 'shared.lua' )

local GServer = "G-link/gamemode/Server/*.lua"
local GClient = "G-link/gamemode/Client/*.lua"
local GShared = "G-link/gamemode/Shared/*.lua"

for k, v in pairs( file.FindInLua(GServer) ) do
	if ( v ) then
		include( "Server/" .. v )		
		print( "-> SERVER: " .. v .. " loaded" )
	else
		print( "-> Could not load " .. v )
	end
	
end

for k, v in pairs( file.FindInLua(GClient ) ) do
	if ( v ) then
		AddCSLuaFile( "Client/" .. v )
		print( "-> CLIENT: " .. v .. " loaded" )
		else
		print( "-> Could not load " .. v )
	end
end

for k, v in pairs( file.FindInLua(GShared ) ) do
	if ( v ) then	
		include( "Shared/" .. v )		
		AddCSLuaFile( "Shared/" .. v )		
		print( "-> SHARED: " .. v .. " loaded" )	
	else	
		print( "-> Could not load " .. v )		
	end	
end

function GM:Initialize()

end

function GM:PlayerSpawn(ply)

end